import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;


public class demo {

	public static void main(String[] args) throws IOException {
		ghiFile();
		docFile();
	}
	
private static void moi(){
		
		try {
			BufferedReader reader = new BufferedReader( new FileReader("bt1.txt") );
			
			String line1 = reader.readLine();
			String line2 = reader.readLine();
			
			int n = Integer.parseInt(line1);
			int arr[] = new int[n];
			
			String s[] = line2.split(" ");
			
			for (int i = 0; i < n; i++) {
				arr[i] = Integer.parseInt(s[i]); 
			}
			
			reader.close();
			//
			
			System.out.println("so ptu cua mang " + n);
			for (int i = 0; i < n; i++) {
				System.out.print(" " + arr[i]);
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}
private static void docFile() throws IOException{
	BufferedReader read = new BufferedReader(new FileReader("bt1.txt"));
//	String line1 = read.readLine();
	String line2 = read.readLine();
//	int n = Integer.parseInt(line1);
//	System.out.println(n);
//	int mang []= new int [n];
	String s[] = line2.split(" ");
	for (int i = 0; i < s.length; i++) {
		System.out.println(s[i]);
		read.close();
	}
	
}
private static void ghiFile() throws IOException{
	FileWriter fr = new FileWriter("bt1.txt");
	fr.write("2 3 4 5 6 7 12 66");
	System.out.println("ghi thanh cong");
	fr.close();
}
}

